package com.study.design.model.behaviorPattern.mediator;

/**
* @Name: Macket
* @Description: 具体同事类：每个具体的同事只知道自己的行为，而不了解其他同事的情况，但他们都认识中介者对象
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-15 下午4:40:28 
* @Version: V1.0
 */
public class Macket implements Department {
	
	private Mediator mediator ;

	public Macket(Mediator mediator) {
		this.mediator = mediator;
		mediator.register("macketer", this) ;
	}

	@Override
	public void selfAction() {
		System.out.println("市场部：拉项目！");
	}

	@Override
	public void outAction() {
		System.out.println("困难请求：项目承接进度，需要资金支持！");
		mediator.command("finacial") ;
	}

}
